import java.util.Iterator;
import java.util.ServiceLoader;

public class Main {
	public static void main(String[] args) {

		ServiceLoader<Search> s = ServiceLoader.load(Search.class);
		Iterator<Search> searchs = s.iterator();
		if (searchs.hasNext()) {
			Search curSearch = searchs.next();
			System.out.println(curSearch.search("test"));
		}
	}
}